package org.achicu.db.rhino;

import org.achicu.db.values.StorableObject;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Delegator;
import org.mozilla.javascript.Scriptable;

public class StorableObjectConstructor extends Delegator {

	
	public Object call(Context cx, Scriptable scope, Scriptable thisObj,
			Object[] args) {
		return new StorableObject();
	}

	
	public Scriptable construct(Context cx, Scriptable scope, Object[] args) {
		return new RhinoStorableObject(new StorableObject(), scope);
	}

}
